import {fromJS} from "immutable";
import {PAGE_SAVE} from "./type";

const defaultData = fromJS({
    PageInfo: '',
    // PageTitle:'',
    // Category:''
})


export default (state = defaultData, {type, value}) => {
    switch (type) {
        case PAGE_SAVE:
            return state.set('PageInfo', value);
        default:
            return state;
    }
}
